//新增系列返回
function backSeries() {
     // 系列添加
     // 返回
     divset = document.getElementsByClassName("seriesSearch");
     for (var i = 0; i < divset.length; i++) {
         divset[i].style.display = "inline";
     };
     divsetedit = document.getElementsByClassName("seriesEdit");
     for (var i = 0; i < divset.length; i++) {
         divsetedit[i].style.display = "none";
     };
     divsetadd = document.getElementsByClassName("seriesAdd");
     for (var i = 0; i < divset.length; i++) {
         divsetadd[i].style.display = "none";
     };
}
// 添加保存
function addsaveSeries(){
    //获取值
     var brandidS = document.getElementById("brandidS").value
     var seriesName = document.getElementById("addSeries").value
     $.ajax({
         url:'http://192.168.0.110:8080/CarManage/addSeries',
         method:'post',
         contentType: "application/x-www-form-urlencoded",
         data:{
            seriesName:seriesName,
            brandID:brandidS
         },
         success: function (res) {
             console.log(res.data)
         } 
     })
     divset = document.getElementsByClassName("seriesSearch");
     for (var i = 0; i < divset.length; i++) {
         divset[i].style.display = "inline";
         location.reload();
     };
     divsetedit = document.getElementsByClassName("seriesEdit");
     for (var i = 0; i < divset.length; i++) {
         divsetedit[i].style.display = "none";
     };
     divsetadd = document.getElementsByClassName("seriesAdd");
     for (var i = 0; i < divset.length; i++) {
         divsetadd[i].style.display = "none";
     };
}